<script type="text/javascript">
	var baseUrl = '<?php echo $this->baseUrl; ?>/';
	var controller = '<?php echo $this->controller; ?>';
	var action = '<?php echo $this->action; ?>';

	/* Mensagem alerta */
	<?php if ($this->flash_message): ?>
		var flash_message = <?php echo $this->flash_message; ?>;
		<?php if($this->module !='admin'): ?> 
			for (var i = flash_message.length; i--;)
				alert(flash_message[i][1]);
		<?php endif; ?>
	<?php else: ?>
		var flash_message = false;
	<?php endif; ?>
</script>
<script type="text/javascript" src="<?php echo $this->baseUrl . '/skin/js/' . $this->module . '/' . $this->controller; ?>"></script>